#!/bin/bash

curl -s www.google.com/search?q=ip | grep "Client IP " | sed -n '/^$/!{s/<[^>]*>//g;p;}' | awk '{FS=" ";print $NF}' | sed -e 's/)//' 2> /tmp/myip_log